﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="UCenter.Web.Views.Friend.Index" %>
<%@ Import Namespace="UCenter.BusinessContract" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="form1">
        <h3>好友</h3>
        
        <form method="post" action="<%= Html.AttributeEncode(Url.Action("Index", "Friend")) %>">
            <p>
                <%= Html.ActionLink("邀请", "Invite", "Friend") %> || 
                <%= Html.ActionLink("查找", "Find", "Friend") %>
            </p>
            
            <div class="tabbar">
                <%= Html.ActionLink("我的好友", "Index", "Friend") %>
                <%= Html.ActionLink("好友管理", "Group", "Friend") %>
                <%= Html.ActionLink("好友状态", "Status", "Friend") %>
                <%= Html.ActionLink("谁来看过我", "Visitor", "Friend") %>
                <%= Html.ActionLink("我去看过谁", "Visited", "Friend") %>
            </div>
            <div style="line-height: 5em;">
                
                <div class="dxx_of" id="myfriends">
                    <%foreach(FriendContract friend in ViewData["Friends"] as List<FriendContract>)
                      {        
                    %>
                    <div class="dxx1" style="padding:15px 10px;"></div>
                    <div class="dxx4">
                        <div class="l50_s">
                            <%= Html.Image("http://pic.kaixin001.com/logo/16/58/50_165842_1.jpg", friend.UserFriend.TrueName, new { @class = "logo" })%>
                        </div>
                    </div>
                    <div class="text-align:center;margin-top:-8px;">
                        <%= Html.ActionLink(friend.UserFriend.TrueName, "ViewDetail", "Account")%>
                        <br />
                        <%= Html.ActionLink("屬性", "ViewAttribute", "Account") %> | 
                        <%= Html.ActionLink("刪除", "DeleteFriend", "Account") %>                
                    </div>
                    <%} %>
                
                </div>
            </div>
        
        </form>
    </div>
</asp:Content>
